// // Copyright (c) 2009 All Right Reserved // // vl // // 2009-01-01 // Contains ... using System.Text; namespace LargoCommon.Music { /// /// Harmonic Behavior. /// /// public class HarmonicBehavior : BindingBehavior { #region Properties /// /// Gets or sets inner measure of dissonance. /// /// /// Property description. /// public float Consonance { get; set; } /// /// Gets or sets the formal genus. /// /// /// The formal genus. /// public float Genus { get; set; } /// /// Gets or sets the potential. /// /// /// The potential. /// public float Potential { get; set; } /// /// Gets or sets inner balance. /// /// /// Property description. /// public float Balance { get; set; } #endregion #region String representation /// String representation - not used, so marked as static. /// Returns value. public override string ToString() { var s = new StringBuilder(); s.AppendFormat("Consonance={0,6:F1} Genus={1,6:F1} Potential={2,6:F1} Balance={3,6:F1} ", this.Consonance, this.Genus, this.Potential, this.Balance); return s.ToString(); } #endregion } }